package example.string;

/**
 * Created by lenovo on 2016/11/4 0004.
 * 字符串反转reverse()
 */
public class Reverse {
    public static void main(String[] args) {
        String str = "abcdef";
        String reverseStr = new StringBuffer(str).reverse().toString();

        System.out.println("String before reverse :" + str);
        System.out.println("String after reverse : " + reverseStr);
    }
}
